package com.dididoctor.doctor.Activity.Welcome;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.dididoctor.doctor.Dialog.adapter.BaseDialog;
import com.dididoctor.doctor.R;


public class WelcomeDialog extends BaseDialog {
    private Context context;
    private String details,title;
    private TextView mTvDetails,mTvTitle,mTvCancel;
    public WelcomeDialog(Context context,String title, String details) {
        super(context);
        this.context = context;
        this.details = details;
        this.title = title;
        setContentView(R.layout.dialog_welcome);
       initview();
    }

    private void initview() {
        mTvDetails = (TextView) findViewById(R.id.tv_details);
        mTvDetails.setText(details);
        mTvTitle = (TextView) findViewById(R.id.tv_title);
        mTvTitle.setText(title);
        mTvCancel = (TextView) findViewById(R.id.tv_cancel);
        mTvCancel.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.tv_cancel:
                dismiss();
                break;
            default:
                break;
        }
        super.onClick(v);
    }

}
